// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.UserOnlineStatisticsDao;
import com.liuxinlong.modules.entity.UserOnlineStatistics;
import com.liuxinlong.modules.mapper.UserOnlineStatisticMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年10月19日
 */
@Service
public class UserOnlineStatisticsDaoImpl extends ServiceImpl<UserOnlineStatisticMapper, UserOnlineStatistics> implements UserOnlineStatisticsDao {

    @Override
    public List<Map<String, Object>>  getOnlineStatistics(Map<String, Object> queryParam) {
        return baseMapper.getOnlineStatistics(queryParam);
    }

    @Override
    public UserOnlineStatistics getRecord(String userId, String statisticsDate) {
        return baseMapper.getRecord(userId,statisticsDate);
    }
}
